﻿//using System;
//using System.Threading.Tasks;
//using System.Web;
//using System.Web.Mvc;
//using Rhino.Mocks;
//using Microsoft.AspNet.Identity.Owin;
//using Microsoft.Owin;
//using Microsoft.Owin.Security;
using Microsoft.VisualStudio.TestTools.UnitTesting;
//using MisRepresentantes.Core.Utilities;
//using MisRepresentantes.Web.Controllers;

namespace MisRepresentantes.Tests.Web.Controllers
{
    [TestClass]
    public class AccesoControllerTests
    {
        //private IAuthenticationManager _authenticationManager;
        //private AccesoController _accesoController;
        //private HttpContextBase _httpContext;
        //private IOwinContext _owinContext;

        [TestInitialize]
        public void TestInitialize()
        {
            //_authenticationManager = MockRepository.GenerateMock<IAuthenticationManager>();
            //_owinContext = MockRepository.GenerateMock<IOwinContext>();
            //_httpContext = MockRepository.GenerateMock<HttpContextBase>();

            //_owinContext.Stub(c => c.Authentication).Return(_authenticationManager);

            //var loginInfo = new ExternalLoginInfo();
            //Task<ExternalLoginInfo> task = new Task<ExternalLoginInfo>(new System.Func<ExternalLoginInfo>(() => { return loginInfo; }));
            //_authenticationManager.Stub(m => m.GetExternalLoginInfoAsync()).Return(task);


            //HttpContextFactory.SetHttpContext(_httpContext);
            //HttpContextFactory.SetOwinContext(_owinContext);

            //_accesoController = new AccesoController();
        }

        //[TestMethod]
        //public void ReciboPaginaDeConfirmacionAlAutenticarmeViaFacebook()
        //{
        //    // Arrange

        //    // Act
        //    var viewResult = _accesoController.ExternoCallback(null).Result as ViewResult;

        //    // Assert
        //}
    }
}